package com.dayu.service.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dayu.dao.msuser.MsuserDaoI;
import com.dayu.dao.test.PersonDao;
import com.dayu.entity.Msuser;
import com.dayu.entity.Person;
import com.dayu.service.MsuserService;
import com.dayu.service.PersonService;

/**
 * @author dayu
 * @date 2018/10/30
 */
@Service
public class MsuserServiceImpl implements MsuserService {

    @Autowired
    private MsuserDaoI userDao;

    @Override
    public void insertMsuser(Msuser user) {
        userDao.insertMsuser(user);
    }

    @Override
    public Msuser getMsuserById(int id) {
        return userDao.getMsuserById(id);
    }

    @Override
    public List<Msuser> getMsuserList() {
        return userDao.getMsuserList();
    }

    @Override
    public void updateMsuser(Msuser msuser) {
        userDao.updateMsuser(msuser);
    }

    @Override
    public void deleteMsuserById(int id) {
        userDao.deleteMsuserById(id);
    }

}
